//
//  HJJPlayerViewController.h
//  Pianke
//
//  Created by 黄俊杰 on 15/12/27.
//  Copyright © 2015年 dada. All rights reserved.
//

#import "BaseViewController.h"
#import "STKAudioPlayer.h"

@protocol PlayerViewDelegate <NSObject>

-(void)backArray:(NSMutableArray *)array indexRow:(NSInteger)indexRow firstBtn:(BOOL)firstBtn;

-(void)backState:(NSString *)State;

@end

@interface HJJPlayerViewController : BaseViewController

@property (nonatomic, assign)id<PlayerViewDelegate>playerViewDele;

@property (nonatomic, strong)STKAudioPlayer *player;

@property (nonatomic, strong)UIButton *nextBtn;

@property (nonatomic, strong)UIButton *lastBtn;

@property (nonatomic, strong)UIButton *startBtn;

@property (nonatomic, strong)NSMutableArray *listArray;

@property (nonatomic, assign)NSInteger indexRow;

@property (nonatomic, assign)NSInteger outKey;

@property (nonatomic, assign)NSInteger smallPlayerKey;

+(instancetype)sharePlayerViewController;

@property (nonatomic, assign)BOOL btnJudge;

-(void)getSmallPlayerData:(NSInteger)indexRow;

@property (nonatomic, copy)NSString *stateJudge;

@property (nonatomic, copy)NSString *State;

-(void)sendSmallState:(NSString *)State;

@end
